package com.ug.common.constant;

/**
 * @Author LY
 * @create 2024/7/16 16:51
 * @Description 公共常量
 */
public class CommonConstants {

    private CommonConstants(){
        throw new IllegalStateException("无法创建静态常量类");
    }

    public static final int KB = 1024;

    public static final int MB = KB * 1024;

    public static final int GB = MB * 1024;

    /**
     * 超级管理员角色
     */
    public static final String ROLE_ADMIN = "ROLE_ADMIN";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "111111";

    /**
     * 操作正常
     */
    public static final Integer LOG_SUCCESS = 1;

    /**
     * 操作异常
     */
    public static final Integer LOG_ERROR = 0;

    /**
     * 登录类型
     */
    public static final String LOGIN_TYPE_ACCOUNT = "账号密码";
    public static final String LOGIN_TYPE_QQ = "QQ";
    public static final String LOGIN_TYPE_GITEE = "gitee";

    /**
     * 前端页面弹窗关闭
     */
    public static final String WINDOW_CLOSED = "<script>window.close();</script>";

    /**
     * 数据库表信息缓存
     */
    public static final String TABLES_CACHE = "tableInfoList";
}
